package com.docMan.bean;

import java.sql.Date;
import java.text.ParseException;

import org.apache.commons.lang.time.DateUtils;

public class IndexFile {
	private String filePath;
	private String pathId;
	private String fileId;
	private String humanName;
	private String createTime;
	private String fileName;
	private String imageCssClass;
	private String content;
	private boolean isIndex;
	private String SWBH;
	private String LWBH;
	private String LWBT;
	private String LWDW;
	private Date date;
	private String displayRange;
	private String unitId;
	private String searchAble;
	private String humanIds;
	private String isImportantFile;
	/**
	 * 索引文件来源
	 */
	private String indexFrom;
	public IndexFile(String fileId) {
		super();
		this.fileId = fileId;
	}

	public IndexFile(String filePath, String pathId, String fileId,
			String humanName, String createTime, String fileName,
			String imageCssClass) {
		super();
		this.filePath = filePath;
		this.pathId = pathId;
		this.fileId = fileId;
		this.humanName = humanName;
		this.createTime = createTime;
		this.fileName = fileName;
		this.imageCssClass = imageCssClass;
	}

	public IndexFile() {
		// TODO Auto-generated constructor stub
	}
	
	
	public String getIsImportantFile() {
		return isImportantFile;
	}

	public void setIsImportantFile(String isImportantFile) {
		this.isImportantFile = isImportantFile;
	}

	public String getHumanIds() {
		return humanIds;
	}

	public void setHumanIds(String humanIds) {
		this.humanIds = humanIds;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getSearchAble() {
		return searchAble;
	}

	public void setSearchAble(String searchAble) {
		this.searchAble = searchAble;
	}

	public String getDisplayRange() {
		return displayRange;
	}

	public void setDisplayRange(String displayRange) {
		this.displayRange = displayRange;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getSWBH() {
		return SWBH;
	}

	public void setSWBH(String sWBH) {
		SWBH = sWBH;
	}

	public String getLWBH() {
		return LWBH;
	}

	public void setLWBH(String lWBH) {
		LWBH = lWBH;
	}

	public String getLWBT() {
		return LWBT;
	}

	public void setLWBT(String lWBT) {
		LWBT = lWBT;
	}

	public String getLWDW() {
		return LWDW;
	}

	public void setLWDW(String lWDW) {
		LWDW = lWDW;
	}

	public String getIndexFrom() {
		return indexFrom;
	}

	public void setIndexFrom(String indexFrom) {
		this.indexFrom = indexFrom;
	}

	public boolean isIndex() {
		return isIndex;
	}

	public void setIndex(boolean isIndex) {
		this.isIndex = isIndex;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImageCssClass() {
		return imageCssClass;
	}
	public void setImageCssClass(String imageCssClass) {
		this.imageCssClass = imageCssClass;
	}
	public String getPathId() {
		return pathId;
	}

	public void setPathId(String pathId) {
		this.pathId = pathId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getHumanName() {
		return humanName;
	}
	public void setHumanName(String humanName) {
		this.humanName = humanName;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	
	public void setNd(int indexNd) throws ParseException{
		Date date=new Date(DateUtils.parseDate(indexNd+"", new String[]{"yyyy","yyyy-MM"}).getTime());
		this.date=date;
	}
	
}
